package com.online_exam.repository;


import com.github.pagehelper.PageInfo;
import com.online_exam.domain.ExamPaper;
import com.online_exam.viewmodel.admin.ExamPaper.ExamPaperPageRequestVM;
import com.online_exam.viewmodel.student.dashboard.PaperFilter;
import com.online_exam.viewmodel.student.dashboard.PaperInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ExamMapper {
    int insert(ExamPaper examPaper);
    List<ExamPaper> page(ExamPaperPageRequestVM model);

    ExamPaper selectById(Integer id);

    Integer update(ExamPaper examPaper);

    List<PaperInfo> indexVM(PaperFilter paperFilter);
}
